<template>
  <div class="pie">
    <KiEchart :options="options"/>

  </div>
</template>

<script setup lang="ts">
import KiEchart from '../ki-echart/KiEchart.vue';
const props = defineProps({
  data:{
    type:Array,
    required:true
  }
})
const options = {
  tooltip: {
    trigger: 'item'
  },
  legend: {
    orient: 'horizontal',
    left: 'top'
  },
  series: [
    {
      name: 'Access From',
      type: 'pie',
      radius: '50%',
      data: props.data,
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    }
  ]
};
</script>

<style scoped>

</style>